package com.sunriz.motordrive.server.common;

import com.sunriz.motordrive.domain.DTO.SetValueDTO;
import com.sunriz.motordrive.domain.DTO.Result;

/**
 * ClassName: SerialPort
 * Package: com.sunriz.motordrive.server.common.impl
 * Description:
 *
 * @Author BuTang
 * @Create 2024/7/1 15:28
 * @Version 1.0
 */
public interface SerialPortServer {

    /**
     *
     * @return
     */
    Result motorEnableSerialPort(String port , int baudRate);
    Result photoThermalHcEnableSerialPort(String port , int baudRate);
    Result photoVoltaicHcEnableSerialPort(String port, String slaveId, int baudRate);
    Result disableSerialPort();
    Result connectStatus();
    Result setValue(SetValueDTO setValueDTO);
    Result check(SetValueDTO setValueDTO);
    Result getPorts();
    Result clearData();

}
